package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import nonapi.io.github.classgraph.json.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.time.LocalDateTime;
import java.time.LocalDate;
import java.math.BigDecimal;
@Document(collection = "user")
@Data// 指定集合名称为 user
public class User {
    @Id // 标识主键字段[1,5](@ref)
    private String id; // MongoDB 默认使用 String 类型主键
    private String email;
    private String password;
    private String phone;
    private String bio;
    private long localDateTime;
    double preFund;
}